﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="updateAdmin.aspx.cs" Inherits="iResume.updateAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        @import "jQueryDate/jquery.datepick.css";
    </style>
    <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="jQueryDate/jquery.datepick.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#MainContent_tbxDob').datepick({ dateFormat: 'dd/mm/yyyy', minDate: '01/01/1900', maxDate: '12/30/2010' });
        });

    </script>
    <style type="text/css">
          .txtbox
        {   
                border-width:1px;
                border-style:inset;
                border-color: #D8D8D8;
                border-top-left-radius: 6px;
                border-top-right-radius: 6px;
                border-bottom-left-radius: 6px;
                border-bottom-right-radius: 6px;
                height : 25px;
                padding: 2px 7px 0px 7px;   
                font-size: 14px;
                color: #999999;
                 outline: none;
            
        }
        .style4
        {
            height: 360px;
        }
        .style5
        {
            text-align: left;
            width: 115px;
        }
        .style7
        {
            font-family: "Century Gothic";
            margin-left: 120px;
        }
        .style8
        {
            font-family: "Century Gothic";
            font-weight: bold;
        }
        .style9
        {
            text-align: left;
            font-size: x-large;
            color: #999999;
        }
        .style10
        {
            text-align: right;
        }
        .style12
        {
            text-align: left;
            width: 287px;
        }
        .style15
        {
            text-align: left;
        }
        .style17
        {
            text-align: right;
            width: 278px;
            height: 32px;
        }
        .style18
        {
            height: 32px;
            }
        .style19
        {
            text-align: left;
            height: 32px;
        }
        .style23
        {
            text-align: right;
            width: 278px;
            height: 35px;
        }
        .style24
        {
            height: 35px;
            }
        .style25
        {
            text-align: left;
            height: 35px;
        }
        .style26
        {
            text-align: right;
            width: 278px;
            height: 31px;
        }
        .style27
        {
            height: 31px;
            }
        .style28
        {
            text-align: left;
            height: 31px;
        }
        .style29
        {
            text-align: right;
            width: 278px;
            height: 65px;
        }
        .style30
        {
            height: 65px;
            }
        .style31
        {
            text-align: left;
            height: 65px;
        }
        .style34
        {
            text-align: left;
            height: 30px;
        }
        .style35
        {
            text-align: right;
            width: 278px;
            height: 28px;
        }
        .style36
        {
            height: 28px;
            }
        .style37
        {
            text-align: left;
            height: 28px;
        }
        .style38
        {
            text-align: right;
            width: 278px;
            height: 43px;
        }
        .style39
        {
            height: 43px;
            }
        .style40
        {
            text-align: left;
            height: 43px;
        }
        .style41
        {
            height: 360px;
            width: 1%;
        }
        .style44
        {
            font-family: "Century Gothic";
        }
        .style45
        {
            text-align: right;
            width: 278px;
            height: 82px;
        }
        .style46
        {
            height: 82px;
        }
        .style47
        {
            text-align: left;
            height: 82px;
        }
        .style50
        {
            text-align: right;
            width: 278px;
            height: 30px;
        }
        .style51
        {
            text-align: right;
            width: 286px;
        }
        .style52
        {
            height: 30px;
        }
        .style53
        {
            text-align: left;
            height: 30px;
            width: 224px;
        }
        .style54
        {
            text-align: left;
            height: 82px;
            width: 224px;
        }
        .style55
        {
            text-align: left;
            height: 32px;
            width: 224px;
        }
        .style56
        {
            text-align: left;
            height: 28px;
            width: 224px;
        }
        .style57
        {
            text-align: left;
            height: 43px;
            width: 224px;
        }
        .style58
        {
            text-align: left;
            height: 31px;
            width: 224px;
        }
        .style59
        {
            text-align: left;
            height: 65px;
            width: 224px;
        }
        .style60
        {
            text-align: left;
            height: 35px;
            width: 224px;
        }
        .style62
        {
            text-align: right;
            width: 278px;
            height: 19px;
        }
        .style63
        {
            height: 19px;
        }
        .style64
        {
            text-align: left;
            height: 19px;
            width: 224px;
        }
        .style65
        {
            text-align: left;
            height: 19px;
        }
        .style66
        {
            text-align: left;
            width: 224px;
        }
        .style67
        {
            text-align: right;
            width: 278px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width:100%; height: 532px;">
        <tr>
            <td class="style7" colspan="8">
                <div class="style9">
                    <span class="style8">Update </span>
                    <span class="style44">Administrator</span><span class="style8"> </span>
                </div>
                <hr />
            </td>
        </tr>
        <tr>
            <td class="style7" colspan="8">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style41">
                <span class="style7">
            </td>
            <td class="style4" colspan="2">
                </span>
            </td>
            <td class="style4" colspan="2">
                                        <asp:Panel ID="Panel5" runat="server" Height="514px" 
                    Width="449px" BackImageUrl="Picture/u.PNG" CssClass="style7">
                                            <table style="width:99%; height: 181px;">
                                                <tr>
                                                    <td class="style62">
                                                        </td>
                                                    <td class="style63">
                                                        </td>
                                                    <td class="style64">
                                                        </td>
                                                    <td class="style65">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style45">
                                                    </td>
                                                    <td class="style46">
                                                    </td>
                                                    <td class="style54">
                                                        <table style="width: 119%; margin-left: 0px;">
                                                            <tr>
                                                                <td rowspan="3">
                                                                    <asp:Image ID="Image2" runat="server" BorderStyle="Double" 
                                                                        DataValue='<%# ((System.Data.Linq.Binary) Eval("imageFull")).ToArray() %>' 
                                                                        Height="95px" ImageUrl="Picture/cmlogo.PNG" style="margin-left: 5px" 
                                                                        Width="98px" />
                                                                </td>
                                                                <td colspan="2">
                                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                                        ControlToValidate="tbxName" ErrorMessage="*Full name: no numeric" 
                                                                        Font-Size="XX-Small" ForeColor="Red" style="font-size: 8pt" 
                                                                        ValidationExpression="[a-zA-Z\s]+"></asp:RegularExpressionValidator>
                                                                    <br />
                                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                                                                        ControlToValidate="tbxPostalCode" ErrorMessage="*Post code: no alphabet" 
                                                                        Font-Size="Smaller" ForeColor="Red" style="font-size: 8pt" 
                                                                        ValidationExpression="[0-9]+"></asp:RegularExpressionValidator>
                                                                    <br />
                                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                                                        ControlToValidate="contxb" ErrorMessage="*Contact: no alphabet" 
                                                                        Font-Size="Smaller" ForeColor="Red" style="font-size: 8pt" 
                                                                        ValidationExpression="[0-9]+"></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;</td>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;</td>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td class="style47">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td class="style17">
                                                        <asp:Label ID="Label1" runat="server" Text="Profile Picture :"></asp:Label>
                                                    </td>
                                                    <td class="style18">
                                                        </td>
                                                    <td class="style55">
                                                        <input id="FileUploadImage1" type="file" cssclass="txtbox" 
                runat="server" align="left"/>
                                                    </td>
                                                    <td class="style19">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td class="style50">
                                                        <asp:Label ID="Label2" runat="server" Text="Full Name :"></asp:Label>
                                                    </td>
                                                    <td class="style52">
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                            ControlToValidate="tbxName" EnableViewState="False" ErrorMessage="*" 
                                                            ForeColor="Red"></asp:RequiredFieldValidator>
                                                        </td>
                                                    <td class="style53">
                                                        <asp:TextBox ID="tbxName" CssClass="txtbox" runat="server" Width="252px"></asp:TextBox>
                                                    </td>
                                                    <td class="style34">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td class="style35">
                                                        <asp:Label ID="Label4" runat="server" Text="Date of Birth :"></asp:Label>
                                                    </td>
                                                    <td class="style36">
                                                        </td>
                                                    <td class="style56">
                                                        <asp:TextBox ID="tbxDob" runat="server" CssClass="txtbox" Width="252px"></asp:TextBox>
                                                    </td>
                                                    <td class="style37">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td class="style38">
                                                        <asp:Label ID="Label5" runat="server" Text="Gender :"></asp:Label>
                                                    </td>
                                                    <td class="style39">
                                                        </td>
                                                    <td class="style57">
                                                        <asp:RadioButtonList ID="rbtnGender" runat="server" Height="23px" Width="143px">
                                                            <asp:ListItem Selected="True">Male</asp:ListItem>
                                                            <asp:ListItem>Female</asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                    <td class="style40">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td class="style26">
                                                        <asp:Label ID="Label8" runat="server" Text="Nationality:"></asp:Label>
                                                    </td>
                                                    <td class="style27">
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                                            ControlToValidate="ddlnational1" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                                                        </td>
                                                    <td class="style58">
                                                        <asp:DropDownList ID="ddlnational1" cssclass="txtbox" runat="server" style="margin-bottom: 0px" 
                                                            Width="257px" InitialValue="unselected">
                                                            <asp:ListItem>unselected</asp:ListItem>
                                                            <asp:ListItem>America</asp:ListItem>
                                                            <asp:ListItem>British </asp:ListItem>
                                                            <asp:ListItem>Canadian</asp:ListItem>
                                                            <asp:ListItem>Dutch, in Poland</asp:ListItem>
                                                            <asp:ListItem>Estonian</asp:ListItem>
                                                            <asp:ListItem>French</asp:ListItem>
                                                            <asp:ListItem>German</asp:ListItem>
                                                            <asp:ListItem>Hungarian</asp:ListItem>
                                                            <asp:ListItem>Indian</asp:ListItem>
                                                            <asp:ListItem>Japanese</asp:ListItem>
                                                            <asp:ListItem>Korean</asp:ListItem>
                                                            <asp:ListItem>Lithuanian</asp:ListItem>
                                                            <asp:ListItem>Mexican</asp:ListItem>
                                                            <asp:ListItem>Norwegian</asp:ListItem>
                                                            <asp:ListItem>Portuguese</asp:ListItem>
                                                            <asp:ListItem>Romanian </asp:ListItem>
                                                            <asp:ListItem>Singapore</asp:ListItem>
                                                            <asp:ListItem>Ukrainian</asp:ListItem>
                                                            <asp:ListItem>Venezuelan</asp:ListItem>
                                                            <asp:ListItem>Yugoslavian</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td class="style28">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td class="style29">
                                                        <asp:Label ID="Label6" runat="server" Text="Address:"></asp:Label>
                                                    </td>
                                                    <td class="style30">
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                                            ControlToValidate="tbxAddress" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                                                        </td>
                                                    <td class="style59">
                                                        <asp:TextBox ID="tbxAddress" cssclass="txtbox" runat="server" Height="50px" 
                                                            Style="max-height:50px; min-height:50px; max-width:252px; min-width:252px;"  TextMode="MultiLine" Width="252px"></asp:TextBox>
                                                    </td>
                                                    <td class="style31">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td class="style23">
                                                        <asp:Label ID="Label7" runat="server" Text="Postal Code:"></asp:Label>
                                                    </td>
                                                    <td class="style24">
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                            ControlToValidate="tbxPostalCode" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                                                        </td>
                                                    <td class="style60">
                                                        <asp:TextBox ID="tbxPostalCode" cssclass="txtbox" runat="server" Width="252px"></asp:TextBox>
                                                    </td>
                                                    <td class="style25">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td class="style67">
                                                        <asp:Label ID="con" runat="server" Text="Contact :"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                                            ControlToValidate="contxb" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                                                    </td>
                                                    <td class="style66">
                                                        <asp:TextBox ID="contxb" runat="server" cssclass="txtbox" Width="252px"></asp:TextBox>
                                                    </td>
                                                    <td class="style15">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td class="style67">
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td class="style66">
                                                        <asp:Button ID="btnUpdate" runat="server" CssClass="style7" 
                                                            onclick="btnUpdate_Click1" style="margin-left: 78px" Text="Update" />
                                                    </td>
                                                    <td class="style15">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td class="style67">
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td class="style66">
                                                        &nbsp;</td>
                                                    <td class="style15">
                                                        &nbsp;</td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
            </td>
            <td class="style4" colspan="2">
                </td>
            <td class="style41">
                </td>
        </tr>
        <tr>
            <td class="style10" colspan="2">
                <span class="style7"></td>
            <td class="style5" colspan="2">
                </span></td>
            <td class="style12" colspan="2">
                &nbsp;</td>
            <td colspan="2">
                &nbsp;</td>
        </tr>
        </table>
</asp:Content>
